package com.yungu.swift.schedule.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.yungu.swift.assets.driver.service.DriverHeatMapService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import static com.yungu.swift.schedule.config.NacosListener.SYS_CONFIG;

/**
 * @author : cuixiuyin
 * @date : 2019/4/23
 */
@Slf4j
@Service
public class HeatMapStatisService {

    @Reference
    private DriverHeatMapService driverHeatMapService;


    public void heatMapStatis() {
        log.info("------热力图订单统计定时任务------");
        driverHeatMapService.cacheHeatMapInfo(SYS_CONFIG.getAppid());
    }
}
